/* 基础样式 */
body {
    margin: 0;
    height: 100vh;
    background: url('https://img1.baidu.com/it/u=848742253,1576507071&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: flex-end; /* 右对齐 */
    align-items: center;
}

/* 登录容器 */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 350px;
    margin-right: 10%; /* 右侧留白 */
    transition: transform 0.3s ease;
}

/* 输入组样式 */
.input-group {
    position: relative;
    margin: 25px 0;
}

input {
    width: 100%;
    padding: 12px 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-bottom-color: #2ecc71;
}

label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: 0.3s ease;
}

/* 输入框动画效果 */
input:focus ~ label,
input:valid ~ label {
    top: -10px;
    font-size: 12px;
    color: #2ecc71;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2ecc71;
    transition: 0.4s;
}

input:focus ~ .underline {
    width: 100%;
}

/* 按钮样式 */
button {
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

button:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        width: 80%;
        margin-right: 5%;
        padding: 30px;
    }
}